<? require_once("sitemap.php");
$action = "start";

if (!empty($_POST['action']))
{
	$action = $_POST['action'];
}
if ($action == "update")
{
	dumppost($HTTP_SERVER_VARS['REMOTE_USER']);						
	$id = intval(@@mysql_real_escape_string($_POST['id']));
	$comments = @mysql_real_escape_string($_POST['comments']);

	if(isset($_POST['sendreceivedpms']))
	    $sendreceivedpms = 1;
	else
	    $sendreceivedpms = 0;
	if(isset($_POST['senderrorpms']))
	    $senderrorpms = 1;
	else
	    $senderrorpms = 0;
	if(isset($_POST['advertise']))
	    $advertise = 1;
	else
	    $advertise = 0;
	if(isset($_POST['altadvertise']))
	    $altadvertise = 1;
	else
	    $altadvertise = 0;
	if(isset($_POST['hnhviagm']))
	    $hnhviagm = 1;
	else
	    $hnhviagm = 0;
	if(isset($_POST['hnhvialocal']))
	    $hnhvialocal = 1;
	else
	    $hnhvialocal = 0;

	$hnhmessage = @mysql_real_escape_string($_POST['hnhmessage']);

	$minadverttime = intval(@mysql_real_escape_string($_POST['minadverttime']));
	$randomadvertdelay = intval(@mysql_real_escape_string($_POST['randomadvertdelay']));
	$advertendmessage = @mysql_real_escape_string($_POST['advertendmessage']);

	$minaltadverttime = intval(@mysql_real_escape_string($_POST['minaltadverttime']));
	$randomaltadvertdelay = intval(@mysql_real_escape_string($_POST['randomaltadvertdelay']));
	$altadvertendmessage = @mysql_real_escape_string($_POST['altadvertendmessage']);

	$locationdescription = @mysql_real_escape_string($_POST['locationdescription']);
	$welcomedescription = @mysql_real_escape_string($_POST['welcomedescription']);
	$BotOwner = @mysql_real_escape_string($_POST['BotOwner']);
	$pmmonitorlist = @mysql_real_escape_string($_POST['pmmonitorlist']);
	$newhourcolour = intval(@mysql_real_escape_string($_POST['newhourcolour']));
	$playerloggedoncolour = intval(@mysql_real_escape_string($_POST['playerloggedoncolour']));
	$playerloggedoffcolour = intval(@mysql_real_escape_string($_POST['playerloggedoffcolour']));
	$playerjoinedguildcolour = intval(@mysql_real_escape_string($_POST['playerjoinedguildcolour']));
	$playerleftguildcolour = intval(@mysql_real_escape_string($_POST['playerleftguildcolour']));
	$guildlongname = @mysql_real_escape_string($_POST['guildlongname']);
	if($minadverttime<900)
		$minadverttime = 900;
	if($randomadvertdelay<0)
		$randomadvertdelay = 0;
	if($minaltadverttime<900)
		$minaltadverttime = 900;
	if($randomaltadvertdelay<0)
		$randomaltadvertdelay = 0;
	if($newhourcolour<127 || $newhourcolour>154)
		$newhourcolour = 127;
	if($playerloggedoncolour<127 || $playerloggedoncolour>154)
		$playerloggedoncolour = 127;
	if($playerloggedoffcolour<127 || $playerloggedoffcolour>154)
		$playerloggedoffcolour = 127;
	if($playerjoinedguildcolour<127 || $playerjoinedguildcolour>154)
		$playerjoinedguildcolour = 127;
	if($playerleftguildcolour<127 || $playerleftguildcolour>154)
		$playerleftguildcolour = 127;
	
	$sql = "UPDATE bots SET comments = '$comments', sendreceivedpms = '$sendreceivedpms', senderrorpms = '$senderrorpms', pmmonitorlist = '$pmmonitorlist', locationdescription = '$locationdescription', guildlongname = '$guildlongname', welcomedescription = '$welcomedescription', BotOwner = '$BotOwner', newhourcolour = '$newhourcolour', playerloggedoncolor = '$playerloggedoncolour', playerloggedoffcolor = '$playerloggedoffcolour', playerjoinedguildcolor = '$playerjoinedguildcolour',  playerleftguildcolor = '$playerleftguildcolour', gmhnhmessage = '$hnhviagm', localhnhmessage = '$hnhvialocal', hnhmessage = '$hnhmessage', advertise = '$advertise', minadverttime = '$minadverttime', randomadvertdelay = '$randomadvertdelay', altadvertise = '$altadvertise', minaltadverttime = '$minaltadverttime', randomaltadvertdelay = '$randomaltadvertdelay', advertendmessage = '$advertendmessage',  altadvertendmessage = '$altadvertendmessage' WHERE id = '$botid' LIMIT 1;";
	$result = mysql_query($sql, $db);
	echo (mysql_error());	
}
?>
<html>
	<title><? echo (":" . $HTTP_SERVER_VARS['REMOTE_USER'] . ": ". $Botname); ?>'s EL-BOT Info Management</title>
<body>
	<h1><? echo ($Botname); ?>'s EL-BOT Bot Info Management</h1>
	<form method = "post" action = "botinfo.php"><input type = "submit" name = "submit" value = "RELOAD"><input type = "hidden" name = "action" value = "refresh"></form>
<?
		$result = mysql_query("SELECT id, name, botid, comments, locationdescription, welcomedescription, BotOwner, newhourcolour, playerloggedoncolor, playerloggedoffcolor, playerjoinedguildcolor, playerleftguildcolor, guildlongname, hnhmessage, gmhnhmessage, localhnhmessage, advertise, minadverttime, randomadvertdelay, advertendmessage, sendreceivedpms, senderrorpms, pmmonitorlist, altadvertise, minaltadverttime, randomaltadvertdelay, altadvertendmessage FROM bots WHERE id = '$botid';", $db);
		echo (mysql_error());
	?>
    
	<h2>Bot Information:</h2>
        <table border = "1" cellpadding = "0" cellspacing = "0">
                <?
                        while ($myrow = mysql_fetch_row($result)) {			
			
                ?>
                        <form method = "POST" action = "<? echo $_SERVER['PHP_SELF']; ?>"><input type = "hidden" name = "id" value = "<?echo ($myrow[0])?>">
				<tr><td>name</td><td><?echo stripslashes($myrow[1])?></td><td rowspan = 18><input type = "submit" name = "action" value = "update"></td></tr>
                        <tr><td>comments</td><td><input type = "TEXT" size = "50" name = "comments" value = "<?echo stripslashes($myrow[3])?>"></td></tr>
                        <tr><td>Location Description</td><td><input type = "TEXT" size = "50" name = "locationdescription" value = "<?echo stripslashes($myrow[4])?>"></td></tr>
                        <tr><td>Welcome Description</td><td><input type = "TEXT" size = "50" name = "welcomedescription" value = "<?echo stripslashes($myrow[5])?>"></td></tr>
                        <tr><td>Guild Long name</td><td><input type = "TEXT" size = "50" name = "guildlongname" value = "<?echo stripslashes($myrow[12])?>"></td></tr>
                        <tr><td>Send Received PMs<br>Forward PMs sent to the bot to the list below</td><td><input type = "CHECKBOX" name = "sendreceivedpms" <? if($myrow[20]!= 0) echo "CHECKED"; ?>></td></tr>
                        <tr><td>Send Error PMs<br>Forward Error PMs sent to the bot to the list below</td><td><input type = "CHECKBOX" name = "senderrorpms" <? if($myrow[21]!= 0) echo "CHECKED"; ?>></td></tr>
                        <tr><td>List of people to receive PMs<br>'|' separated</td><td><input type = "TEXT" size = "50" name = "pmmonitorlist" value = "<?echo stripslashes($myrow[22])?>"></td></tr>
                        <tr><td>Advertisement end message<br>eg [inv/loc/wanted]</td><td><input type = "TEXT" size = "50" name = "advertendmessage" value = "<?echo stripslashes($myrow[19])?>"></td></tr>
                        <tr><td>Advertise</td><td><input type = "CHECKBOX" name = "advertise" <? if($myrow[16]!= 0) echo "CHECKED"; ?>></td></tr>
                        <tr><td>Adverts delay (seconds)<br>15 minutes (900 seconds) minimum (game rule)</td><td><input type = "TEXT" size = "50" name = "minadverttime" value = "<?echo stripslashes($myrow[17])?>"></td></tr>
                        <tr><td>Adverts extra random delay (seconds)<br>eg 120 to add up to 2 minutes extra</td><td><input type = "TEXT" size = "50" name = "randomadvertdelay" value = "<?echo stripslashes($myrow[18]); ?>"></td></tr>				

                        <tr><td>Alt Advertisement end message<br>eg [inv/loc/wanted]</td><td><input type = "TEXT" size = "50" name = "altadvertendmessage" value = "<?echo stripslashes($myrow[26])?>"></td></tr>
                        <tr><td>Alt Advertise</td><td><input type = "CHECKBOX" name = "altadvertise" <? if($myrow[23]!= 0) echo "CHECKED"; ?>></td></tr>
                        <tr><td>Alt Adverts delay (seconds)<br>15 minutes (900 seconds) minimum (game rule)</td><td><input type = "TEXT" size = "50" name = "minaltadverttime" value = "<?echo stripslashes($myrow[24])?>"></td></tr>
                        <tr><td>Alt Adverts extra random delay (seconds)<br>eg 120 to add up to 2 minutes extra</td><td><input type = "TEXT" size = "50" name = "randomaltadvertdelay" value = "<?echo stripslashes($myrow[25]); ?>"></td></tr>				

                        <tr><td>Happy New Hour Message</td><td><input type = "TEXT" size = "50" name = "hnhmessage" value = "<?echo stripslashes($myrow[13])?>"></td></tr>
                        <tr><td>Broadcast Happy New Hour via #GM</td><td><input type = "CHECKBOX" name = "hnhviagm" <? if($myrow[14]!= 0) echo "CHECKED"; ?>></td></tr>
                        <tr><td>Broadcast Happy New Hour via local chat</td><td><input type = "CHECKBOX" name = "hnhvialocal" <? if($myrow[15]!= 0) echo "CHECKED"; ?>></td></tr>
                        <tr><td>Bot owners<br>'|' separated</td><td><input type = "TEXT" size = "50" name = "BotOwner" value = "<?echo stripslashes($myrow[6])?>"></td></tr>
                        <tr><td>New Hour Colour</td><td>
<select name = "newhourcolour">
	<option value = "127"<? if($myrow[7] == 127) echo " selected" ?>>c_red1
	<option value = "134"<? if($myrow[7] == 134) echo " selected" ?>>c_red2
	<option value = "141"<? if($myrow[7] == 141) echo " selected" ?>>c_red3
	<option value = "148"<? if($myrow[7] == 148) echo " selected" ?>>c_red4
	<option value = "128"<? if($myrow[7] == 128) echo " selected" ?>>c_orange1
	<option value = "135"<? if($myrow[7] == 135) echo " selected" ?>>c_orange2
	<option value = "142"<? if($myrow[7] == 142) echo " selected" ?>>c_orange3
	<option value = "149"<? if($myrow[7] == 149) echo " selected" ?>>c_orange4
	<option value = "129"<? if($myrow[7] == 129) echo " selected" ?>>c_yellow1
	<option value = "136"<? if($myrow[7] == 136) echo " selected" ?>>c_yellow2
	<option value = "143"<? if($myrow[7] == 143) echo " selected" ?>>c_yellow3
	<option value = "150"<? if($myrow[7] == 150) echo " selected" ?>>c_yellow4
	<option value = "130"<? if($myrow[7] == 130) echo " selected" ?>>c_green1
	<option value = "137"<? if($myrow[7] == 137) echo " selected" ?>>c_green2
	<option value = "144"<? if($myrow[7] == 144) echo " selected" ?>>c_green3
	<option value = "151"<? if($myrow[7] == 151) echo " selected" ?>>c_green4
	<option value = "131"<? if($myrow[7] == 131) echo " selected" ?>>c_blue1
	<option value = "138"<? if($myrow[7] == 138) echo " selected" ?>>c_blue2
	<option value = "145"<? if($myrow[7] == 145) echo " selected" ?>>c_blue3
	<option value = "152"<? if($myrow[7] == 152) echo " selected" ?>>c_blue4
	<option value = "132"<? if($myrow[7] == 132) echo " selected" ?>>c_purple1
	<option value = "139"<? if($myrow[7] == 139) echo " selected" ?>>c_purple2
	<option value = "146"<? if($myrow[7] == 146) echo " selected" ?>>c_purple3
	<option value = "153"<? if($myrow[7] == 153) echo " selected" ?>>c_purple4
	<option value = "133"<? if($myrow[7] == 133) echo " selected" ?>>c_grey1
	<option value = "140"<? if($myrow[7] == 140) echo " selected" ?>>c_grey2
	<option value = "147"<? if($myrow[7] == 147) echo " selected" ?>>c_grey3
	<option value = "154"<? if($myrow[7] == 154) echo " selected" ?>>c_grey4
</select>
</td></tr>
                        <tr><td>Player Logged On Colour</td><td>
<select name = "playerloggedoncolour">
	<option value = "127"<? if($myrow[8] == 127) echo " selected" ?>>c_red1
	<option value = "134"<? if($myrow[8] == 134) echo " selected" ?>>c_red2
	<option value = "141"<? if($myrow[8] == 141) echo " selected" ?>>c_red3
	<option value = "148"<? if($myrow[8] == 148) echo " selected" ?>>c_red4
	<option value = "128"<? if($myrow[8] == 128) echo " selected" ?>>c_orange1
	<option value = "135"<? if($myrow[8] == 135) echo " selected" ?>>c_orange2
	<option value = "142"<? if($myrow[8] == 142) echo " selected" ?>>c_orange3
	<option value = "149"<? if($myrow[8] == 149) echo " selected" ?>>c_orange4
	<option value = "129"<? if($myrow[8] == 129) echo " selected" ?>>c_yellow1
	<option value = "136"<? if($myrow[8] == 136) echo " selected" ?>>c_yellow2
	<option value = "143"<? if($myrow[8] == 143) echo " selected" ?>>c_yellow3
	<option value = "150"<? if($myrow[8] == 150) echo " selected" ?>>c_yellow4
	<option value = "130"<? if($myrow[8] == 130) echo " selected" ?>>c_green1
	<option value = "137"<? if($myrow[8] == 137) echo " selected" ?>>c_green2
	<option value = "144"<? if($myrow[8] == 144) echo " selected" ?>>c_green3
	<option value = "151"<? if($myrow[8] == 151) echo " selected" ?>>c_green4
	<option value = "131"<? if($myrow[8] == 131) echo " selected" ?>>c_blue1
	<option value = "138"<? if($myrow[8] == 138) echo " selected" ?>>c_blue2
	<option value = "145"<? if($myrow[8] == 145) echo " selected" ?>>c_blue3
	<option value = "152"<? if($myrow[8] == 152) echo " selected" ?>>c_blue4
	<option value = "132"<? if($myrow[8] == 132) echo " selected" ?>>c_purple1
	<option value = "139"<? if($myrow[8] == 139) echo " selected" ?>>c_purple2
	<option value = "146"<? if($myrow[8] == 146) echo " selected" ?>>c_purple3
	<option value = "153"<? if($myrow[8] == 153) echo " selected" ?>>c_purple4
	<option value = "133"<? if($myrow[8] == 133) echo " selected" ?>>c_grey1
	<option value = "140"<? if($myrow[8] == 140) echo " selected" ?>>c_grey2
	<option value = "147"<? if($myrow[8] == 147) echo " selected" ?>>c_grey3
	<option value = "154"<? if($myrow[8] == 154) echo " selected" ?>>c_grey4
</select>
</td></tr>
                        <tr><td>Player Logged Off Colour</td><td>
<select name = "playerloggedoffcolour">
	<option value = "127"<? if($myrow[9] == 127) echo " selected" ?>>c_red1
	<option value = "134"<? if($myrow[9] == 134) echo " selected" ?>>c_red2
	<option value = "141"<? if($myrow[9] == 141) echo " selected" ?>>c_red3
	<option value = "148"<? if($myrow[9] == 148) echo " selected" ?>>c_red4
	<option value = "128"<? if($myrow[9] == 128) echo " selected" ?>>c_orange1
	<option value = "135"<? if($myrow[9] == 135) echo " selected" ?>>c_orange2
	<option value = "142"<? if($myrow[9] == 142) echo " selected" ?>>c_orange3
	<option value = "149"<? if($myrow[9] == 149) echo " selected" ?>>c_orange4
	<option value = "129"<? if($myrow[9] == 129) echo " selected" ?>>c_yellow1
	<option value = "136"<? if($myrow[9] == 136) echo " selected" ?>>c_yellow2
	<option value = "143"<? if($myrow[9] == 143) echo " selected" ?>>c_yellow3
	<option value = "150"<? if($myrow[9] == 150) echo " selected" ?>>c_yellow4
	<option value = "130"<? if($myrow[9] == 130) echo " selected" ?>>c_green1
	<option value = "137"<? if($myrow[9] == 137) echo " selected" ?>>c_green2
	<option value = "144"<? if($myrow[9] == 144) echo " selected" ?>>c_green3
	<option value = "151"<? if($myrow[9] == 151) echo " selected" ?>>c_green4
	<option value = "131"<? if($myrow[9] == 131) echo " selected" ?>>c_blue1
	<option value = "138"<? if($myrow[9] == 138) echo " selected" ?>>c_blue2
	<option value = "145"<? if($myrow[9] == 145) echo " selected" ?>>c_blue3
	<option value = "152"<? if($myrow[9] == 152) echo " selected" ?>>c_blue4
	<option value = "132"<? if($myrow[9] == 132) echo " selected" ?>>c_purple1
	<option value = "139"<? if($myrow[9] == 139) echo " selected" ?>>c_purple2
	<option value = "146"<? if($myrow[9] == 146) echo " selected" ?>>c_purple3
	<option value = "153"<? if($myrow[9] == 153) echo " selected" ?>>c_purple4
	<option value = "133"<? if($myrow[9] == 133) echo " selected" ?>>c_grey1
	<option value = "140"<? if($myrow[9] == 140) echo " selected" ?>>c_grey2
	<option value = "147"<? if($myrow[9] == 147) echo " selected" ?>>c_grey3
	<option value = "154"<? if($myrow[9] == 154) echo " selected" ?>>c_grey4
</select>
</td></tr>
                        <tr><td>Player Joined Guild Colour</td><td>
<select name = "playerjoinedguildcolour">
	<option value = "127"<? if($myrow[10] == 127) echo " selected" ?>>c_red1
	<option value = "134"<? if($myrow[10] == 134) echo " selected" ?>>c_red2
	<option value = "141"<? if($myrow[10] == 141) echo " selected" ?>>c_red3
	<option value = "148"<? if($myrow[10] == 148) echo " selected" ?>>c_red4
	<option value = "128"<? if($myrow[10] == 128) echo " selected" ?>>c_orange1
	<option value = "135"<? if($myrow[10] == 135) echo " selected" ?>>c_orange2
	<option value = "142"<? if($myrow[10] == 142) echo " selected" ?>>c_orange3
	<option value = "149"<? if($myrow[10] == 149) echo " selected" ?>>c_orange4
	<option value = "129"<? if($myrow[10] == 129) echo " selected" ?>>c_yellow1
	<option value = "136"<? if($myrow[10] == 136) echo " selected" ?>>c_yellow2
	<option value = "143"<? if($myrow[10] == 143) echo " selected" ?>>c_yellow3
	<option value = "150"<? if($myrow[10] == 150) echo " selected" ?>>c_yellow4
	<option value = "130"<? if($myrow[10] == 130) echo " selected" ?>>c_green1
	<option value = "137"<? if($myrow[10] == 137) echo " selected" ?>>c_green2
	<option value = "144"<? if($myrow[10] == 144) echo " selected" ?>>c_green3
	<option value = "151"<? if($myrow[10] == 151) echo " selected" ?>>c_green4
	<option value = "131"<? if($myrow[10] == 131) echo " selected" ?>>c_blue1
	<option value = "138"<? if($myrow[10] == 138) echo " selected" ?>>c_blue2
	<option value = "145"<? if($myrow[10] == 145) echo " selected" ?>>c_blue3
	<option value = "152"<? if($myrow[10] == 152) echo " selected" ?>>c_blue4
	<option value = "132"<? if($myrow[10] == 132) echo " selected" ?>>c_purple1
	<option value = "139"<? if($myrow[10] == 139) echo " selected" ?>>c_purple2
	<option value = "146"<? if($myrow[10] == 146) echo " selected" ?>>c_purple3
	<option value = "153"<? if($myrow[10] == 153) echo " selected" ?>>c_purple4
	<option value = "133"<? if($myrow[10] == 133) echo " selected" ?>>c_grey1
	<option value = "140"<? if($myrow[10] == 140) echo " selected" ?>>c_grey2
	<option value = "147"<? if($myrow[10] == 147) echo " selected" ?>>c_grey3
	<option value = "154"<? if($myrow[10] == 154) echo " selected" ?>>c_grey4
</select>
</td></tr>
                        <tr><td>Player Left Guild Colour</td><td>
<select name = "playerleftguildcolour">
	<option value = "127"<? if($myrow[11] == 127) echo " selected" ?>>c_red1
	<option value = "134"<? if($myrow[11] == 134) echo " selected" ?>>c_red2
	<option value = "141"<? if($myrow[11] == 141) echo " selected" ?>>c_red3
	<option value = "148"<? if($myrow[11] == 148) echo " selected" ?>>c_red4
	<option value = "128"<? if($myrow[11] == 128) echo " selected" ?>>c_orange1
	<option value = "135"<? if($myrow[11] == 135) echo " selected" ?>>c_orange2
	<option value = "142"<? if($myrow[11] == 142) echo " selected" ?>>c_orange3
	<option value = "149"<? if($myrow[11] == 149) echo " selected" ?>>c_orange4
	<option value = "129"<? if($myrow[11] == 129) echo " selected" ?>>c_yellow1
	<option value = "136"<? if($myrow[11] == 136) echo " selected" ?>>c_yellow2
	<option value = "143"<? if($myrow[11] == 143) echo " selected" ?>>c_yellow3
	<option value = "150"<? if($myrow[11] == 150) echo " selected" ?>>c_yellow4
	<option value = "130"<? if($myrow[11] == 130) echo " selected" ?>>c_green1
	<option value = "137"<? if($myrow[11] == 137) echo " selected" ?>>c_green2
	<option value = "144"<? if($myrow[11] == 144) echo " selected" ?>>c_green3
	<option value = "151"<? if($myrow[11] == 151) echo " selected" ?>>c_green4
	<option value = "131"<? if($myrow[11] == 131) echo " selected" ?>>c_blue1
	<option value = "138"<? if($myrow[11] == 138) echo " selected" ?>>c_blue2
	<option value = "145"<? if($myrow[11] == 145) echo " selected" ?>>c_blue3
	<option value = "152"<? if($myrow[11] == 152) echo " selected" ?>>c_blue4
	<option value = "132"<? if($myrow[11] == 132) echo " selected" ?>>c_purple1
	<option value = "139"<? if($myrow[11] == 139) echo " selected" ?>>c_purple2
	<option value = "146"<? if($myrow[11] == 146) echo " selected" ?>>c_purple3
	<option value = "153"<? if($myrow[11] == 153) echo " selected" ?>>c_purple4
	<option value = "133"<? if($myrow[11] == 133) echo " selected" ?>>c_grey1
	<option value = "140"<? if($myrow[11] == 140) echo " selected" ?>>c_grey2
	<option value = "147"<? if($myrow[11] == 147) echo " selected" ?>>c_grey3
	<option value = "154"<? if($myrow[11] == 154) echo " selected" ?>>c_grey4
</select>
</td></tr>
				</form>
                <?
                        }
                ?>
        </table>
        <table>
        	<tr>
			<td bgcolor = "#FFB3C1">127 c_red1</td>
			<td bgcolor = "#FB5A5A">134 c_red2</td>
			<td bgcolor = "#DD0202">141 c_red3</td>
			<td bgcolor = "#7E0303">148 c_red4</td>
		</tr>
        	<tr>
			<td bgcolor = "<? echo rgbhex(247, 196, 159) ?>">128 c_orange1</td>
			<td bgcolor = "<? echo rgbhex(252, 122, 58) ?>">135 c_orange2</td>
			<td bgcolor = "<? echo rgbhex(191, 102, 16) ?>">142 c_orange3</td>
			<td bgcolor = "<? echo rgbhex(131, 48, 3) ?>">149 c_orange4</td>
		</tr>
        	<tr>
			<td bgcolor = "<? echo rgbhex(251, 250, 190) ?>">129 c_yellow1</td>
			<td bgcolor = "<? echo rgbhex(252, 236, 56) ?>">136 c_yellow2</td>
			<td bgcolor = "<? echo rgbhex(231, 174, 20) ?>">143 c_yellow3</td>
			<td bgcolor = "<? echo rgbhex(130, 111, 6) ?>">150 c_yellow4</td>
		</tr>
        	<tr>
			<td bgcolor = "<? echo rgbhex(201, 254, 203) ?>">130 c_green1</td>
			<td bgcolor = "<? echo rgbhex(5, 220, 155) ?>">137 c_green2</td>
			<td bgcolor = "<? echo rgbhex(37, 196, 0) ?>">144 c_green3</td>
			<td bgcolor = "<? echo rgbhex(20, 149, 4) ?>">151 c_green4</td>
		</tr>
        	<tr>
			<td bgcolor = "<? echo rgbhex(169, 239, 250) ?>">131 c_blue1</td>
			<td bgcolor = "<? echo rgbhex(118, 151, 248) ?>">138 c_blue2</td>
			<td bgcolor = "<? echo rgbhex(68, 72, 210) ?>">145 c_blue3</td>
			<td bgcolor = "<? echo rgbhex(15, 15, 186) ?>">152 c_blue4</td>
		</tr>
        	<tr>
			<td bgcolor = "<? echo rgbhex(210, 180, 251) ?>">132 c_purple1</td>
			<td bgcolor = "<? echo rgbhex(217, 93, 244) ?>">139 c_purple2</td>
			<td bgcolor = "<? echo rgbhex(130, 84, 246) ?>">146 c_purple3</td>
			<td bgcolor = "<? echo rgbhex(106, 1, 172) ?>">153 c_purple4</td>
		</tr>
        	<tr>
			<td bgcolor = "<? echo rgbhex(255, 255, 255) ?>">133 c_grey1</td>
			<td bgcolor = "<? echo rgbhex(153, 153, 153) ?>">140 c_grey2</td>
			<td bgcolor = "<? echo rgbhex(158, 158, 158) ?>">147 c_grey3</td>
			<td bgcolor = "<? echo rgbhex(40, 40, 40) ?>">154 c_grey4</td>
		</tr>
        </table>

</body>
</html>
